< previous page page_84 next page >

Page 84
name. At this point, you can set several properties that control the appearance of the frame, the effects of which are shown in Figure 4.19:
CaptionIf you enter a value in the Caption property, the text you enter appears in the upper-left corner of the frame. This caption can be used to identify the contents of the frame or provide other descriptive information. If you don't want a caption and simply want an unbroken border around the frame, delete the text in the Caption property.
AppearanceThis property controls whether the border is shown as a single-line, single-color border, which gives the control a flat look, or is shown using lines that give the control a 3D effect.
BorderStyleThis property determines whether the border around the frame is displayed. If the BorderStyle property is set to None (using a value of 0), no border is displayed, and the caption is not displayed because it is also part of the border.
tip.gif
To avoid having the lines of the border touch the text of the caption, insert a space before and after the text when you set the Caption property.

0084-01.jpg
Figure 4.19
You control the frame's appearance through the
Appearance, BorderStyle, and Caption properties.
tip.gif
If you want the frame to appear without a border, leave the border turned on while you are in design mode and then set the BorderStyle property to 0 when your form loads. Having the border displayed in the design environment makes it easier to see the boundaries of the frame.

Working with Controls in the Frame
After you draw a Frame control, you are ready to start placing other controls in it. You can place any controls you like in the frame (or any other container). You can even place containers within containers.
To place controls in a frame, simply draw them directly in the frame just like you would draw them on the form. (If you double-click a Toolbox tool to add a control, it's important that the frame is selected before adding the control.) Then draw controls in the frame just like you

 
< previous page page_84 next page >